import request from '@/utils/request'

// 查询学生成绩
export function getStuGrade(params) {
  return request({
    url: '/administrator/student/score',
    method: 'get',
    params
  })
}

// 修改学生成绩
export function updateStuGrade(params) {
  const { courseId, studentId, score } = params
  return request({
    url: `/administrator/student/score/${courseId}/${studentId}/${score}`,
    method: 'put',
  })
}
